<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->increments('id');
            $table->string('phone')->unique();
            $table->string('password', 60);
            $table->string('user_name')->nullable();
            $table->string('user_img')->nullable();
            $table->string('wrap')->nullable();
            $table->string('college', 100)->nullable();
            $table->string('professional', 50)->nullable();
            $table->string('student_id', 20)->nullable();
            $table->string('college_entry', 20)->nullable();
            $table->string('email')->nullable();
            $table->string('sex', 2)->nullable();
            $table->string('state', 10)->nullable();
            $table->string('birth', 20)->nullable();
            $table->string('notes')->nullable();
            $table->rememberToken();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('users');
    }
}
